<?php
return array(
//*************************************附加设置***********************************
    //'SHOW_PAGE_TRACE'        => false,                            // 是否显示调试面板
    //'TAGLIB_BUILD_IN'        => 'Cx,Common\Tag\My',               // 加载自定义标签
    'LOAD_EXT_CONFIG'        => 'db',                               // 加载网站设置文件
    'TMPL_PARSE_STRING'      => array(                              // 定义常用路径
        '__OSS__'            => OSS_URL,
        '__PUBLIC__'         => __ROOT__.__ROOT__.'/Public',
        '__PUBLIC_CSS__'     => __ROOT__.trim(TMPL_PATH,'.').'Public/css',
        '__PUBLIC_JS__'      => __ROOT__.trim(TMPL_PATH,'.').'Public/js',
        '__PUBLIC_IMAGES__'  => __ROOT__.trim(TMPL_PATH,'.').'Public/images',
        '__ADMIN_CSS__'      => __ROOT__.trim(TMPL_PATH,'.').'Public/css/admin',
        '__ADMIN_JS__'       => __ROOT__.trim(TMPL_PATH,'.').'Public/js/admin',
        '__ADMIN_IMAGES__'   => __ROOT__.trim(TMPL_PATH,'.').'Public/images/admin',
        '__HOME_CSS__'       => __ROOT__.trim(TMPL_PATH,'.').'Public/css/home',
        '__HOME_JS__'        => __ROOT__.trim(TMPL_PATH,'.').'Public/js/home',
        '__HOME_IMAGES__'    => __ROOT__.trim(TMPL_PATH,'.').'Public/images/home',
    	'__PUBLIC_JQUERY__'  => __ROOT__.trim(TMPL_PATH,'.').'Public/js/jquery/',
    	'__PUBLIC_UPLOAD__'  => __ROOT__.'/Upload/',
    ),
//***********************************URL设置**************************************
    'MODULE_ALLOW_LIST'      => array('Home','Admin'), //允许访问列表
    'URL_HTML_SUFFIX'        => '.html',  // URL伪静态后缀设置
    'URL_CASE_INSENSITIVE'   => true,     //忽略大小写
	'URL_MODEL'              => 2,  //启用rewrite
//***********************************SESSION设置**********************************
    'SESSION_OPTIONS'        => array(
        'name'               => 'HSNET',//设置session名
        'expire'             => 24*3600*15, //SESSION保存15天
        'use_trans_sid'      => 1, //跨页传递
        'use_only_cookies'   => 0, //是否只开启基于cookies的session的会话方式
    ),
//***********************************页面设置**************************************
    'TMPL_EXCEPTION_FILE'    => APP_DEBUG ? THINK_PATH.'Tpl/think_exception.tpl' : './Template/default/Home/Public/404.html',
    'TMPL_ACTION_ERROR'      => TMPL_PATH.'/Public/dispatch_jump.tpl', // 默认错误跳转对应的模板文件
    'TMPL_ACTION_SUCCESS'    => TMPL_PATH.'/Public/dispatch_jump.tpl', // 默认成功跳转对应的模板文件

//***********************************redis缓存设置**********************************
	'DATA_CACHE_PREFIX' => 'Redis_',   //缓存前缀
	'DATA_CACHE_TYPE'=>'Redis',        //默认动态缓存为Redis
	'REDIS_RW_SEPARATE' => true,       //Redis读写分离 true 开启
	'REDIS_HOST'=>'127.0.0.1',         //redis服务器ip，多台用逗号隔开；读写分离开启时，第一台负责写，其它[随机]负责读；
	'REDIS_PORT'=>'6379',              //端口号
	'REDIS_TIMEOUT'=>'300',            //超时时间
	'REDIS_PERSISTENT'=>false,         //是否长连接 false=短连接
	'REDIS_AUTH'=>'yszqKj@0!6',        //AUTH认证密码

);
